<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //   console.log("a");
      //   setTimeout(function () {
      //     console.log("c");
      //   }, 2000);
      //   console.log("b");

      console.log("代码开始执行");
      setTimeout(() => {
        console.log("2秒后执行的代码");
      }, 2000);
      setTimeout(() => {
        console.log('"0秒"后执行的代码');
      }, 0);
      console.log("代码结束执行");
    </script>
  </body>
</html>
